package com.zj.ssm.service.impl;

import com.zj.ssm.mapper.CaseMapper;
import com.zj.ssm.pojo.domain.Subscribe;
import com.zj.ssm.result.AjaxResult;
import com.zj.ssm.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:Coco
 * @date:2022/2/2220:06
 * @version:1.8
 */
@Service
public class CaseServiceImpl implements CaseService {

    @Autowired
    private CaseMapper caseMapper;
    @Override
    public AjaxResult query(String identity) {



        Subscribe in=caseMapper.query(identity);



        return AjaxResult.success(in);
    }

    @Override
    public AjaxResult update(Subscribe subscribe) {
        Long update = caseMapper.update(subscribe);

        return AjaxResult.success();
    }
}
